using System;
using Me.Prettyprint.Hector.Api;

namespace Me.Prettyprint.Hector.Api.Beans
{
    /// <summary>
    /// Hector Column definition.
    /// </summary>
    /// <typeparam name="N"></typeparam>
    /// <typeparam name="V"></typeparam>
    public interface HColumn<N, V>
    {
        N Name
        {
            get;
        }
        V Value
        {
            get;
        }
        HColumn<N, V> SetName(N name);
        HColumn<N, V> SetValue(V value);
        byte[] NameBytes
        {
            get;
        }
        byte[] ValueBytes
        {
            get;
        }
        long Clock
        {
            get;
        }
        HColumn<N, V> SetClock(long clock);
        int Ttl
        {
            get;
        }
        HColumn<N, V> SetTtl(int ttl);
        HColumn<N, V> Apply(V value, long clock, int ttl);
        Serializer<N> NameSerializer
        {
            get;
            set;
        }
        Serializer<V> ValueSerializer
        {
            get;
            set;
        }
        HColumn<N, V> Clear();
	}
}